﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ContractLibrary;
using ContractLibrary.Data;

namespace ContractLibrary
{

    public class Player
    {
        public static Random r = new Random();
        public Player()
        {
          this.equipe = r.Next(Constants.MAX_TEAM)+1;
        }

        public bool isInTeam(int team){
            return this.equipe == team;
        }
        
        public virtual int equipe
        {
            get;
            set;
        }

        public virtual int id
        {
            get;
            set;
        }

        public virtual string nom
        {
            get;
            set;
        }

        public virtual int positionX
        {
            get;
            set;
        }

        public virtual int positionY
        {
            get;
            set;
        }

        public virtual TypeOrientation orientation
        {
            get;
            set;
        }

        public virtual int score
        {
            get;
            set;
        }

        public virtual string characterName
        {
            get;
            set;
        }

        public virtual int nbBomb
        {
            get;
            set;
        }

        public virtual void dropBomb()
        {
            
        }

        public virtual void move(int positionX, int positionY, TypeOrientation orientation)
        {
            this.positionX = positionX;
            this.positionY = positionY;
            this.orientation = orientation;
        }

        public virtual PlayerStates state
        {
            get;
            set;
        }

    }


}